import { createApp, createVNode } from 'vue'
/**
	获取某个组件渲染的Dom根元素
*/
export default function (comp, props) {
  const app = createApp({
    render() {
      return createVNode(comp, props)
    }
  })
  const vm = app.mount(document.createElement('div'))
  return vm.$el
}
